package cn.wolfcode.shop.common;


import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class BusinessException extends RuntimeException{

    private CodeMsg codeMsg;

    public BusinessException(){
        super();
    }

    public BusinessException(CodeMsg codeMsg){
        super(codeMsg.getMsg());
        this.codeMsg = codeMsg;
    }

}
